package com.visionarysoftwaresolutions

class Picture {
    private static final int GIGABYTES = 1024 * 1024 * 1024
    private static final int MAX_SIZE = 1 * GIGABYTES //max size 1GB
    byte[] image
    
    static constraints = {
        image maxSize:MAX_SIZE
    }
}
